package haoyc.server;

import java.awt.*;

/**
 * @author Memory
 * @version 1.0
 * @date 2021/11/24
 */
public class RobotClient {

    private static Robot robot;

    public static Robot getRobot() throws AWTException {
        if (null == robot) {
            synchronized (RobotClient.class) {
                if (null == robot) {
                    robot = new Robot();
                }
            }
        }
        return robot;
    }
}
